//
//  WYTabBar.m
//  LoveFreshBee
//
//  Created by admin on 16/4/11.
//  Copyright © 2016年 wyzc. All rights reserved.
//

#import "WYTabBar.h"
#import "WYRedDotView.h"

@interface WYTabBar ()
@property(nonatomic,weak) WYRedDotView *redView;
@end

@implementation WYTabBar

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        WYRedDotView *redView=[WYRedDotView sharedInstance];
        [self addSubview:redView];
        self.redView=redView;
    }
    return self;
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    self.redView.frame=CGRectMake(SCREEN_WIDTH*0.66, 2, 20, 20) ;
}

@end








